package com.kizitonwose.calendarview.utils;

/**
 * @author LiuQingHua
 * @version 1.0
 * @date 2021/2/24/024 10:18
 */
public class ComparisonsUtil {

    public static <T extends Comparable<T>> T minOf(T a, T b) {
        return (a.compareTo(b) < 0 || a.compareTo(b) == 0) ? a : b;
    }
}
